package io.renren.modules.gengyun.controller;

import io.renren.modules.gengyun.entity.Date_Api;
import io.renren.modules.gengyun.feign.PlanFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

@RestController
@RequestMapping("gengyun/plan")
public class PlanFeignController {
//    @Autowired
//    private PlanFeignService planFeignService;
//
//    @RequestMapping(value="list", method = RequestMethod.POST)
//    public Map<String,Object> findall(){
//        return planFeignService.find();
//    }
//
//
//    @RequestMapping(value="/findByName", method = RequestMethod.POST)
//    public Map<String,Object> findByName(@RequestParam String name){
//        return planFeignService.findByName(name);
//    }
//
//
//    @RequestMapping(value="/IndicatorList", method = RequestMethod.POST)
//    public Map<String,Object> findallIndicator(){
//        return planFeignService.findallIndicator();
//    }
//
//
//    @RequestMapping(value="/GatherByDate", method = RequestMethod.POST)
//    public Map<String,Object> findbydate(@RequestParam String date) throws ParseException {
//
//        Date date1 = new SimpleDateFormat("yyyy-MM-dd").parse(date);
//      return planFeignService.findbydate(date1);
//    }
}
